﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models
{
    /// <summary>
    /// 付款登记主表
    /// </summary>
    public class PurchasePayRegistHead
    {
        /// <summary>
        /// 主键
        /// </summary>
        public decimal ID { get; set; }

        /// <summary>
        /// 登记编号
        /// </summary>
        public string PPR_Number { get; set; }

        /// <summary>
        /// 登记时间
        /// </summary>
        public DateTime PPR_Date { get; set; }

        /// <summary>
        /// 付款时间
        /// </summary>
        public DateTime? PPR_PayDate { get; set; }

        /// <summary>
        /// 登记人员
        /// </summary>
        public string PPR_Person { get; set; }

        /// <summary>
        /// 公司ID
        /// </summary>
        public int PPR_CompanyId { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        public string PPR_CompanyName { get; set; }

        /// <summary>
        /// 部门ID
        /// </summary>
        public int PPR_DeptId { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        public string PPR_DeptName { get; set; }

        /// <summary>
        /// 供应商ID
        /// </summary>
        public int PPR_SupplierId { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string PPR_SupplierName { get; set; }

        /// <summary>
        /// 付款银行
        /// </summary>
        public string PPR_Bank { get; set; }

        /// <summary>
        /// 银行账号
        /// </summary>
        public string PPR_BankNumber { get; set; }

        /// <summary>
        /// 发票号
        /// </summary>
        public string PPR_InvoiceNo { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string PPR_Remark { get; set; }

        /// <summary>
        /// 登记总额
        /// </summary>
        public decimal PPR_PayAmount { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public int IsDelete { get; set; }

        /// <summary>
        /// 相关文件
        /// </summary>
        public List<FileData> FileList { get; set; }

        /// <summary>
        /// 资产集合
        /// </summary>
        public List<PurchasePayRegistBody> ItemList { get; set; }

        public PurchasePayRegistHead()
        {
            PPR_PayDate = null;
            PPR_Remark = "";
            IsDelete = 0;
            FileList = new List<FileData>();
            ItemList = new List<PurchasePayRegistBody>();
        }

    }
}
